package com.newly.center.auth;

import com.newly.common.core.auth.ResourcesServerConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * @author gjm guan
 * @date 2021/8/18 11:49
 * @desc 鉴权服务启动类
 */
@SpringBootApplication
@ComponentScan(basePackages = {
        "com.newly.center.auth",
        "com.newly.common.core.service",
        "com.newly.transfer",
        "com.newly.profile.property",
        "com.newly.common.core.utils"
},
        excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE,
                classes = {ResourcesServerConfig.class}))
@MapperScan("com.newly.common.mapper")
public class NewlyAuthStart {
    public static void main(String[] args) {
        SpringApplication.run(NewlyAuthStart.class, args);
    }
}
